﻿//
// eCRAM, a monthly activity report web application
// Copyright (C) 2010  Aptea
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

using System;

namespace eCRAM.Model
{
    /// <summary>
    /// Activity type: mission, holidays, sickness, week ends, project...
    /// </summary>
    /// <remarks>
    /// Only 3 different activity types are defined.
    /// If you wish more details, inside Activity you can specify it
    /// inside the Name field.
    /// Example:
    /// Absence can be a week end or holidays...
    /// The difference between week ends and holidays is specified
    /// inside the Activity.Name field.
    /// </remarks>
    [Flags]
    public enum ActivityType
    {
        /// <summary>
        /// A mission is an external project done
        /// inside an external company.
        /// Example: a Aptea consultant is working for a client company.
        /// </summary>
        Mission = 1,

        /// <summary>
        /// Internal project to the company.
        /// Example: eCRAM is a Aptea internal project.
        /// </summary>
        InternalProject = 2,

        /// <summary>
        /// Holidays, sickness, week-ends...
        /// </summary>
        Absence = 4,

        /// <summary>
        /// Others, corresponding to undefined activity type...
        /// </summary>
        Other = 100
    }
}
